/*
 * Dijjer - A Peer to Peer HTTP Cache
 * Copyright (C) 2004,2005 Change.Tv, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package dijjer.api;

import dijjer.io.comm.AbstractPeer;
import dijjer.io.comm.Peer;
import dijjer.io.comm.RoutingTable.PeerInfo;

public interface DijjerAPI {

	public static final String VERSION = "$Id: DijjerAPI.java 36 2009-03-20 13:30:05Z mathias.demare $";

	public boolean start(String[] args) throws Exception;
	public byte[] download(String url);
	public AbstractPeer[] getConnectedPeers();
	public PeerInfo getPeerInfo(AbstractPeer peer);
//	public Request[] getActiveRequests();

}
